﻿<UserControl x:Class="BestCode.Creds.UI.VwEditFieldDefinition"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:controls="clr-namespace:BestCode.Wpf.Controls;assembly=BestCode.Wpf.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="565" d:DesignWidth="600">
    <Grid>
        <controls:FormHeader TitleText="EDIT PERSON" DescriptionText="Data Form Editing Person Data" Margin="0,0,0,0">
            <Grid>
                <TextBlock Text="Code :" Margin="60,28,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="37" />
                <TextBox Height="23" Text="{Binding SelectedItem.Code, Mode=TwoWay}"  Margin="104,26,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="100" FontWeight="Bold" />
                <TextBlock Text="First Name :" Margin="36,55,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="63" />
                <TextBox Height="23" Text="{Binding SelectedItem.FirstName, Mode=TwoWay}"  Margin="104,53,0,0" HorizontalAlignment="Left" Width="287" VerticalAlignment="Top" />
                <TextBlock Text="Second Name : Name :" Margin="18,82,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" />
                <TextBox Height="23" Text="{Binding SelectedItem.SecondName, Mode=TwoWay}"  Margin="104,80,0,0" HorizontalAlignment="Left" Width="287" VerticalAlignment="Top" />
                <TextBlock Text="Last Name 1 :" Margin="25,109,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="76" />
                <TextBox Height="23" Text="{Binding SelectedItem.LastName1, Mode=TwoWay}"  Margin="104,107,0,0" HorizontalAlignment="Left" Width="287" VerticalAlignment="Top" />
                <TextBlock Text="Last Name 2 :" Margin="23,135,0,0" HorizontalAlignment="Left" Width="79" Height="21" VerticalAlignment="Top" />
                <TextBox Height="23" Text="{Binding SelectedItem.LastName2, Mode=TwoWay}"  Margin="104,133,0,0" HorizontalAlignment="Left" Width="287" VerticalAlignment="Top" />
                <TextBlock Text="Blood Type :" Margin="26,432,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="73" />
                <TextBox Height="23" Text="{Binding SelectedItem.BloodType, Mode=TwoWay}"  Margin="104,430,0,0" HorizontalAlignment="Left" Width="167" VerticalAlignment="Top" />
                <TextBlock Text="Medical Report :" Margin="286,432,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" />
                <TextBox Height="23" Text="{Binding SelectedItem.MedicalReport, Mode=TwoWay}"  Margin="379,430,0,0" HorizontalAlignment="Left" Width="184" VerticalAlignment="Top" />
                <TextBlock Text="Full Address :" Margin="26,287,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="73" />
                <TextBox Height="23" Text="{Binding SelectedItem.Address, Mode=TwoWay}"  Margin="104,285,0,0" HorizontalAlignment="Left" Width="459" VerticalAlignment="Top" />
                <TextBlock Text="Zone :" Margin="62,315,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="40" />
                <TextBox Height="23" Text="{Binding SelectedItem.AddressZone, Mode=TwoWay}"  Margin="104,313,0,0" HorizontalAlignment="Left" Width="167" VerticalAlignment="Top" />
                <TextBlock Text="Work Phone :" Margin="26,343,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="73" />
                <TextBox Height="23" Text="{Binding SelectedItem.WorkPhone, Mode=TwoWay}"  Margin="104,341,0,0" HorizontalAlignment="Left" Width="167" VerticalAlignment="Top" />
                <TextBlock Text="Mobile Phone :" Margin="293,343,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="84" />
                <TextBox Height="23" Text="{Binding SelectedItem.CellPhone, Mode=TwoWay}"  Margin="379,341,0,0" HorizontalAlignment="Left" Width="184" VerticalAlignment="Top" />
                <TextBlock Text="Contact Person:" Margin="17,371,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="85" />
                <TextBox Height="23" Text="{Binding SelectedItem.ContactPersonName, Mode=TwoWay}"  Margin="104,369,0,0" HorizontalAlignment="Left" Width="246" VerticalAlignment="Top" />
                <TextBlock Text="Picture :" Margin="340,170,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="51" />
                <TextBox Height="23" Text="{Binding SelectedItem.Picture, Mode=TwoWay}"  Margin="396,166,0,0" HorizontalAlignment="Left" Width="125" VerticalAlignment="Top" />
                <TextBlock Text="Date Birth :" Margin="37,168,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="60" />
                <Button Content="...." Margin="526,166,0,0" HorizontalAlignment="Left" Width="37" Height="23" VerticalAlignment="Top" Name="btnPicture"></Button>

                <DatePicker SelectedDate="{Binding SelectedItem.DateOfBirth, Mode=TwoWay}" Margin="104,166,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="118"/>
                <TextBlock Text="Gender :" Margin="231,168,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="47" />
                <TextBox Height="23" Text="{Binding SelectedItem.Gender, Mode=TwoWay}"  Margin="283,166,0,0" HorizontalAlignment="Left" Width="48" VerticalAlignment="Top" />
                <TextBlock Text="Basic Informations :" Margin="17,2,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="134" FontWeight="Bold" FontSize="14" />
                <TextBlock Text="Address and Contact :" Margin="17,255,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="157" FontWeight="Bold" FontSize="14" />
                <TextBlock Text="Medical Information :" Margin="17,404,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="157" FontWeight="Bold" FontSize="14" />

                <controls:ImageButton  TextButton="Save Changes" Name="btnSave"   Margin="449,466,0,0" Height="30" VerticalAlignment="Top" HorizontalAlignment="Left" Width="114" IsDefault="True" Click="btnSave_Click" ImageSource="Images/Selected.ico"/>
                <controls:ImageButton  TextButton="CANCEL" Click="btnCancel_Click" Margin="330,466,0,0" Height="30" VerticalAlignment="Top" HorizontalAlignment="Left" Width="97" Content="CANCEL" IsCancel="True" ImageSource="Images/close.png"/>
                <CheckBox Content="Enabled" IsChecked="{Binding SelectedItem.IsEnabled, Mode=TwoWay}" HorizontalAlignment="Left" Margin="286,30,0,0" VerticalAlignment="Top"/>
                <TextBlock Text="Children Of :" Margin="18,230,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" />

                <ComboBox ItemsSource="{Binding VmEntityChild.ChildrenByEntity, Mode=TwoWay}" DisplayMemberPath="Name" SelectedItem="{Binding SelectedItem.EntityChild, Mode=TwoWay}" Margin="104,223,0,0" Height="28" VerticalAlignment="Top" HorizontalAlignment="Left" Width="174"></ComboBox>
                <TextBlock Text="Cedula Num :" Margin="293,225,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="81" />
                <TextBox Height="23" Text="{Binding SelectedItem.CI, Mode=TwoWay}"  Margin="379,223,0,0" HorizontalAlignment="Left" Width="184" VerticalAlignment="Top" />
                <TextBlock Text="BarCodeString :" Margin="10,197,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="89" />
                <TextBox Height="23" Text="{Binding SelectedItem.BarCodeString, Mode=TwoWay}"  Margin="104,195,0,0" HorizontalAlignment="Left" Width="459" VerticalAlignment="Top" />


                <Image Margin="431,19,44,0" Name="imgPerson" Height="140" VerticalAlignment="Top" />
                <TextBlock Text="Email :" Margin="288,315,0,0" Height="21" VerticalAlignment="Top" HorizontalAlignment="Left" Width="40" />
                <TextBox Height="23" Text="{Binding SelectedItem.Email, Mode=TwoWay}"  Margin="330,313,0,0" HorizontalAlignment="Left" Width="233" VerticalAlignment="Top" />
            </Grid>

        </controls:FormHeader>
    </Grid>
</UserControl>
